home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
f90
/
ishell.z
/
ishell
Wrap
Text File
|
1998-10-30
|
3KB
|
58 lines
ISHELL(3F) Last changed: 1-6-98
NNAAMMEE
IISSHHEELLLL - Executes a UNICOS shell command
SSYYNNOOPPSSIISS
IISSTTAATT == IISSHHEELLLL((_c_o_m_m_a_n_d))
IIMMPPLLEEMMEENNTTAATTIIOONN
UNICOS, UNICOS/mk, and IRIX systems
DDEESSCCRRIIPPTTIIOONN
On IRIX systems, this routine is in lliibbffffiioo..ssoo which is linked by
default when compiling programs with the MIPSpro 7 Fortran 90 compiler
or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
7.2 F77 compiler.
IISSHHEELLLL executes a UNICOS shell command. IISSHHEELLLL has the following
argument:
_c_o_m_m_a_n_d Command to be given to the shell; can be of type character
or some numeric type. If it is a noncharacter type, the
command should consist of packed characters terminated by a
null byte.
On IRIX systems, this argument must be of type character.
IISSHHEELLLL passes _c_o_m_m_a_n_d to the shell sshh(1) as input, as if _c_o_m_m_a_n_d were
entered at a terminal.
RREETTUURRNN VVAALLUUEESS
IISSHHEELLLL returns the termination status filled in by the wwaaiittppiidd(2)
system call, which is used to wait for the child shell process.
Unless the command was interrupted by a signal, its exit status is
contained in bits 8 through 15 (bit 0 being the least significant bit)
of the value returned by IISSHHEELLLL (see the wwaaiittppiidd(2) man page for more
information). However, if any errors occur in running the shell or
collecting its exit status, IISSHHEELLLL returns a negative number; this
number is the negative value of eerrrrnnoo corresponding to the error.
EEXXAAMMPPLLEESS
WRITE(TPMNT,500) DTV, XDT, VOL, XVOL, DSN, PDN, MBSV
CALL ISHELL(TPMNT)
500 FORMAT('tpmnt -l sl -F U -T -g ',a6,' -x ',a6,
+ '-v ',a6,'=',a6,' -P ',a8,' -f ',a, ' -b ',a)
SSEEEE AALLSSOO
ppsshheellll(1) in the _U_N_I_C_O_S _U_s_e_r _C_o_m_m_a_n_d_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR
-2011
ssyysstteemm(3C) in the _U_N_I_C_O_S _S_y_s_t_e_m _L_i_b_r_a_r_i_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l,
publication SR-2080
_A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
2165, for the printed version of this man page.